#include "headfiles.h"

using namespace std;

#define STACK_SIZe 30

int main() {
	SetOfStack<int> my_stack;
	int i;
	for (i = 0; i < STACK_SIZE; i++) {
		my_stack.push(i);
	}
	cout << "Sub stack num = " << my_stack.getSubStackNum() << endl;
	
	for (i = 0; i < STACK_SIZE; i++) {
		my_stack.push(i + 30);
	}
	cout << "Sub stack num = " << my_stack.getSubStackNum() << endl;

	my_stack.push(10);
	cout << "Sub stack num = " << my_stack.getSubStackNum() << endl;
	my_stack.pop();
	cout << "Sub stack num = " << my_stack.getSubStackNum() << endl;

	my_stack.push(10);
	int val = my_stack.topAt(1);
	cout << "val = " << val << endl;

	my_stack.popAt(1);
	cout << "Sub stack num = " << my_stack.getSubStackNum() << endl;
	
	return 0;
}

